<?php

namespace backend\models;

use Yii;
use yii\data\ActiveDataProvider;


/**
 * This is the model class for table "{{%project}}".
 *
 * @property integer $id
 * @property string  $name
 * @property string $uid
 * @property string $project_name
 */
class Project extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName ()
    {
        return '{{%project}}';
    }

    /**
     * @inheritdoc
     */
    public function rules ()
    {
        return [
            [ ["uid","project_name",'address'] , 'required' ] ,
            [ ["ctime","utime"] , 'string'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels ()
    {
        return [
            'id'           => 'Project ID' ,
            'uid'          => '当前负责人' ,
            'project_name' => '项目名称' ,
            'ctime'        => '创建时间' ,
            'utime'        => '更新时间' ,
            'mobile_phone' => '手机号',
            'name'         => '当前负责人',
            'address'      => '项目地址',
        ];
    }
}
